package com.kc.web.controller.business;

import com.kc.business.domain.BizAppGoodsCategory;
import com.kc.business.service.IBizAppGoodsCategoryService;
import com.kc.common.core.controller.BaseController;
import com.kc.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * APP内商品大类别
 */
@RestController
@RequestMapping("/business/appCategory")
public class BizAppGoodsCategoryController extends BaseController {
    @Autowired
    private IBizAppGoodsCategoryService appGoodsCategoryService1;
    @PreAuthorize("@ss.hasPermi('business:appCategory:list')")
    @GetMapping("/list")
    public TableDataInfo list(BizAppGoodsCategory bizAppGoodsCategory){
        startPage();
        List<BizAppGoodsCategory> appGoodsCategoryList = appGoodsCategoryService1.getList(bizAppGoodsCategory);
        return getDataTable(appGoodsCategoryList);
    }
}
